﻿using Microsoft.Extensions.Configuration;
using SageKing.Core.Abstractions;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SageKing.MailKit
{
    /// <summary>
    /// 
    /// </summary>
    public class EmailOptions : IOptionsBase
    {
        public string SectionName => "EmailOptions";
        /// <summary>
        /// 是否开启
        /// </summary>
        public bool Enable { get; set; } = false;

        public string SmtpServer { get; set; }
        public int Port { get; set; }
        public string Password { get; set; }
        public string UserName { get; set; }
        public string SenderName { get; set; }
        public string SenderEmail { get; set; }
    }
    public enum DBTypeEnum
    {
        SqlServer = 0,
        InMemory = 1,
        Sqlite = 2,
        MySql = 3,
        PostgreSQL = 4

    }
}
